package io.renren.service;

import io.renren.annotation.LoginUser;
import io.renren.common.service.CrudService;
import io.renren.dto.FoodDTO;
import io.renren.entity.FoodEntity;
import io.renren.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * 食材表（辅材共用）
 *
 * @author 翟文闯 619556390@QQ.com
 * @since 1.0.0 2019-11-22
 */
public interface FoodService extends CrudService<FoodEntity, FoodDTO> {
    List<FoodDTO> supplierFoodId(Long id,String variety, String foodName,String type,int sign,Long orderId, @LoginUser UserEntity entity);
    Map getSupplierName(String foodName,int sign,Long orderId, @LoginUser UserEntity entity);
    List<FoodDTO> selectCoolerFoodId(String name,String variety,int sign,Long orderId, @LoginUser UserEntity entity);

    FoodDTO get(long id);
}